package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the sp_bo.mv_sp_bo_sales_report_Secto table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="sp_bo.mv_sp_bo_sales_report_Secto"
 */

public abstract class BasemvSpBoSalesReportSecto  implements Serializable {

	public static String REF = "mvSpBoSalesReportSecto";
	public static String PROP_ZONE_NAME = "zoneName";
	public static String PROP_ZONE_OSA_ID = "zoneOsaId";
	public static String PROP_MARCHE_TYPE = "marcheType";
	public static String PROP_RS_OSA_ID = "rsOsaId";
	public static String PROP_ZONE_DAMA_ID = "zoneDamaId";
	public static String PROP_SECT_OSA_ID = "sectOsaId";
	public static String PROP_REG_OSA_ID = "regOsaId";
	public static String PROP_SECT_NAME = "sectName";
	public static String PROP_MARCHE_NAME = "marcheName";
	public static String PROP_RS_NAME = "rsName";
	public static String PROP_UGA_NAME = "ugaName";
	public static String PROP_SECT_DAMA_ID = "sectDamaId";
	public static String PROP_REG_SHORT_NAME = "regShortName";
	public static String PROP_CS_COMMON_UGA = "csCommonUga";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_RS_DAMA_ID = "rsDamaId";
	public static String PROP_REG_NAME = "regName";
	public static String PROP_ID = "id";
	public static String PROP_ZONE_SHORT_NAME = "zoneShortName";
	public static String PROP_SECT_SHORT_NAME = "sectShortName";
	public static String PROP_REG_DAMA_ID = "regDamaId";


	// constructors
	public BasemvSpBoSalesReportSecto () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoSalesReportSecto (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer csCommonUga;
	private java.lang.String marcheName;
	private java.lang.String marcheType;
	private java.lang.String ugaCode;
	private java.lang.String ugaName;
	private java.lang.String sectDamaId;
	private java.lang.String sectOsaId;
	private java.lang.String sectName;
	private java.lang.String sectShortName;
	private java.lang.String regDamaId;
	private java.lang.String regOsaId;
	private java.lang.String regName;
	private java.lang.String regShortName;
	private java.lang.String zoneDamaId;
	private java.lang.String zoneOsaId;
	private java.lang.String zoneName;
	private java.lang.String zoneShortName;
	private java.lang.String rsDamaId;
	private java.lang.String rsOsaId;
	private java.lang.String rsName;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CS_COMMON_UGA
	 */
	public java.lang.Integer getCsCommonUga () {
		return csCommonUga;
	}

	/**
	 * Set the value related to the column: CS_COMMON_UGA
	 * @param csCommonUga the CS_COMMON_UGA value
	 */
	public void setCsCommonUga (java.lang.Integer csCommonUga) {
		this.csCommonUga = csCommonUga;
	}



	/**
	 * Return the value associated with the column: MARCHE_NAME
	 */
	public java.lang.String getMarcheName () {
		return marcheName;
	}

	/**
	 * Set the value related to the column: MARCHE_NAME
	 * @param marcheName the MARCHE_NAME value
	 */
	public void setMarcheName (java.lang.String marcheName) {
		this.marcheName = marcheName;
	}



	/**
	 * Return the value associated with the column: MARCHE_TYPE
	 */
	public java.lang.String getMarcheType () {
		return marcheType;
	}

	/**
	 * Set the value related to the column: MARCHE_TYPE
	 * @param marcheType the MARCHE_TYPE value
	 */
	public void setMarcheType (java.lang.String marcheType) {
		this.marcheType = marcheType;
	}



	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: UGA_NAME
	 */
	public java.lang.String getUgaName () {
		return ugaName;
	}

	/**
	 * Set the value related to the column: UGA_NAME
	 * @param ugaName the UGA_NAME value
	 */
	public void setUgaName (java.lang.String ugaName) {
		this.ugaName = ugaName;
	}



	/**
	 * Return the value associated with the column: SECT_DAMA_ID
	 */
	public java.lang.String getSectDamaId () {
		return sectDamaId;
	}

	/**
	 * Set the value related to the column: SECT_DAMA_ID
	 * @param sectDamaId the SECT_DAMA_ID value
	 */
	public void setSectDamaId (java.lang.String sectDamaId) {
		this.sectDamaId = sectDamaId;
	}



	/**
	 * Return the value associated with the column: SECT_OSA_ID
	 */
	public java.lang.String getSectOsaId () {
		return sectOsaId;
	}

	/**
	 * Set the value related to the column: SECT_OSA_ID
	 * @param sectOsaId the SECT_OSA_ID value
	 */
	public void setSectOsaId (java.lang.String sectOsaId) {
		this.sectOsaId = sectOsaId;
	}



	/**
	 * Return the value associated with the column: SECT_NAME
	 */
	public java.lang.String getSectName () {
		return sectName;
	}

	/**
	 * Set the value related to the column: SECT_NAME
	 * @param sectName the SECT_NAME value
	 */
	public void setSectName (java.lang.String sectName) {
		this.sectName = sectName;
	}



	/**
	 * Return the value associated with the column: SECT_SHORT_NAME
	 */
	public java.lang.String getSectShortName () {
		return sectShortName;
	}

	/**
	 * Set the value related to the column: SECT_SHORT_NAME
	 * @param sectShortName the SECT_SHORT_NAME value
	 */
	public void setSectShortName (java.lang.String sectShortName) {
		this.sectShortName = sectShortName;
	}



	/**
	 * Return the value associated with the column: REG_DAMA_ID
	 */
	public java.lang.String getRegDamaId () {
		return regDamaId;
	}

	/**
	 * Set the value related to the column: REG_DAMA_ID
	 * @param regDamaId the REG_DAMA_ID value
	 */
	public void setRegDamaId (java.lang.String regDamaId) {
		this.regDamaId = regDamaId;
	}



	/**
	 * Return the value associated with the column: REG_OSA_ID
	 */
	public java.lang.String getRegOsaId () {
		return regOsaId;
	}

	/**
	 * Set the value related to the column: REG_OSA_ID
	 * @param regOsaId the REG_OSA_ID value
	 */
	public void setRegOsaId (java.lang.String regOsaId) {
		this.regOsaId = regOsaId;
	}



	/**
	 * Return the value associated with the column: REG_NAME
	 */
	public java.lang.String getRegName () {
		return regName;
	}

	/**
	 * Set the value related to the column: REG_NAME
	 * @param regName the REG_NAME value
	 */
	public void setRegName (java.lang.String regName) {
		this.regName = regName;
	}



	/**
	 * Return the value associated with the column: REG_SHORT_NAME
	 */
	public java.lang.String getRegShortName () {
		return regShortName;
	}

	/**
	 * Set the value related to the column: REG_SHORT_NAME
	 * @param regShortName the REG_SHORT_NAME value
	 */
	public void setRegShortName (java.lang.String regShortName) {
		this.regShortName = regShortName;
	}



	/**
	 * Return the value associated with the column: ZONE_DAMA_ID
	 */
	public java.lang.String getZoneDamaId () {
		return zoneDamaId;
	}

	/**
	 * Set the value related to the column: ZONE_DAMA_ID
	 * @param zoneDamaId the ZONE_DAMA_ID value
	 */
	public void setZoneDamaId (java.lang.String zoneDamaId) {
		this.zoneDamaId = zoneDamaId;
	}



	/**
	 * Return the value associated with the column: ZONE_OSA_ID
	 */
	public java.lang.String getZoneOsaId () {
		return zoneOsaId;
	}

	/**
	 * Set the value related to the column: ZONE_OSA_ID
	 * @param zoneOsaId the ZONE_OSA_ID value
	 */
	public void setZoneOsaId (java.lang.String zoneOsaId) {
		this.zoneOsaId = zoneOsaId;
	}



	/**
	 * Return the value associated with the column: ZONE_NAME
	 */
	public java.lang.String getZoneName () {
		return zoneName;
	}

	/**
	 * Set the value related to the column: ZONE_NAME
	 * @param zoneName the ZONE_NAME value
	 */
	public void setZoneName (java.lang.String zoneName) {
		this.zoneName = zoneName;
	}



	/**
	 * Return the value associated with the column: ZONE_SHORT_NAME
	 */
	public java.lang.String getZoneShortName () {
		return zoneShortName;
	}

	/**
	 * Set the value related to the column: ZONE_SHORT_NAME
	 * @param zoneShortName the ZONE_SHORT_NAME value
	 */
	public void setZoneShortName (java.lang.String zoneShortName) {
		this.zoneShortName = zoneShortName;
	}



	/**
	 * Return the value associated with the column: RS_DAMA_ID
	 */
	public java.lang.String getRsDamaId () {
		return rsDamaId;
	}

	/**
	 * Set the value related to the column: RS_DAMA_ID
	 * @param rsDamaId the RS_DAMA_ID value
	 */
	public void setRsDamaId (java.lang.String rsDamaId) {
		this.rsDamaId = rsDamaId;
	}



	/**
	 * Return the value associated with the column: RS_OSA_ID
	 */
	public java.lang.String getRsOsaId () {
		return rsOsaId;
	}

	/**
	 * Set the value related to the column: RS_OSA_ID
	 * @param rsOsaId the RS_OSA_ID value
	 */
	public void setRsOsaId (java.lang.String rsOsaId) {
		this.rsOsaId = rsOsaId;
	}



	/**
	 * Return the value associated with the column: RS_NAME
	 */
	public java.lang.String getRsName () {
		return rsName;
	}

	/**
	 * Set the value related to the column: RS_NAME
	 * @param rsName the RS_NAME value
	 */
	public void setRsName (java.lang.String rsName) {
		this.rsName = rsName;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportSecto)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportSecto mvSpBoSalesReportSecto = (com.gsk.europepharma.salesReport.hibernate.mvSpBoSalesReportSecto) obj;
			if (null == this.getId() || null == mvSpBoSalesReportSecto.getId()) return false;
			else return (this.getId().equals(mvSpBoSalesReportSecto.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}